home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
cpp_libs
/
answrbok
/
6_1.lha
/
6_1
/
6_1a1a.c
next >
Wrap
Text File
|
1993-08-08
|
322b
|
22 lines
* Copyright (c) 1990 by AT&T Bell Telephone Laboratories, Incorporated. */
* The C++ Answer Book */
* Tony Hansen */
* All rights reserved. */
/ iterator set of functions
/ for class string
/ exercise 6.1
oid iterate(int& i)
i = 0;
har next(int& i)
return p->s[i++];
nt ok(int& i)
return p->s[i] != '\0';